#ifndef _RTOS_H_
#define _RTOS_H_

#include "stm32f4xx.h"
#include "FreeRTOS.h"
#include "task.h"

#define Task_Stk_Size 100
#define START_Task_Prio 1

typedef struct
{
	void* pxTaskCode;
    const char * const pcName;
    uint16_t usStackDepth;
    void * const pvParameters;
    UBaseType_t uxPriority;
    TaskHandle_t * const pxCreatedTask;
}task_config;

typedef enum
{
	led1,
	led2,
	task_toal,
}task_id;

typedef enum
{
	TASK_CLEAR,
	TASK_RUN,
}Task_Status;

void SetTaskFlag(task_id ID,Task_Status status);
Task_Status Get_TaskFlag(task_id ID);
void Task_Start(task_id ID);

#endif

